#ifndef CLIENT_REGION_H
#define CLIENT_REGION_H
//******************************************************************************
//*this code is protected by the GNU affero GPLv3
//*author:Sylvain BERTRAND <sylvain.bertrand AT gmail dot com>
//*                        <digital.ragnarok AT gmail dot com>
//******************************************************************************
#define REGION_RECTS_N_MAX 32
#define REGION_RECT_MODE_ADD 0
#define REGION_RECT_MODE_SUB 1
struct region_rect{
  u32 mode;
  s32 x;
  s32 y;
  s32 w;
  s32 h;
};
struct region{
  s32 rects_n;
  struct region_rect rects[REGION_RECTS_N_MAX];
};
s8 region_new_visible(struct client *c,u32 region_id);
s8 region_destroy(struct client *c,s32 region_slot);
s8 region_add(struct client *c,s32 region_slot,s32 x,s32 y,s32 w,s32 h);
s8 region_sub(struct client *c,s32 region_slot,s32 x,s32 y,s32 w,s32 h);
#endif
